package com.example.base.service;

import com.example.base.entity.Order;
import com.example.base.entity.OrderInfo;
import com.example.base.mapper.OrderInfoMapper;
import com.example.base.mapper.OrderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderService {
    @Autowired
    OrderMapper orderMapper;

    @Autowired
    OrderInfoMapper orderInfoMapper;

    public Integer insertOrder(Order order) {
        return orderMapper.insertOrder(order);
    }

    public void insertOrderInfo(OrderInfo info) {
        orderInfoMapper.insertOrderInfo(info);
    }
}
